package com.bdjk.bdmw.InfoGath.common.constants;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Properties;

public class InfoGathConstants {
	// 日期格式化相关常量
	public static final String DATE_TIME_FORMATTER = "yyyy-MM-dd HH:mm:ss";

	public static final SimpleDateFormat SDF = new SimpleDateFormat(DATE_TIME_FORMATTER);

	// tcp服务器ip和端口常量

	private static Properties CONFIG = new Properties();

	static {
		try {
			CONFIG.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("tcp/tcp.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static final String TCP_IP = CONFIG.getProperty("tcp_ip");
	
	public static final String TCP_PORT = CONFIG.getProperty("tcp_port");
	
}
